package com.lvxing.admin.biz.controller;


import com.lvxing.admin.biz.entity.IndataMaraBatch;
import com.lvxing.admin.biz.service.IIndataMaraBatchService;
import com.lvxing.admin.biz.service.impl.IndataMaraBatchServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lvxing
 * @since 2019-07-19
 */
@RestController
@RequestMapping("/biz/indata-mara-batch")
public class IndataMaraBatchController {

    @Autowired
    IIndataMaraBatchService indataMaraBatchService;

    @PostMapping("/test")
    public String test(@RequestBody List<IndataMaraBatch> indataMaraBatchs) {
        indataMaraBatchService.saveOrUpdateBatch(indataMaraBatchs);
        return null;
    }

}
